﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.OpenApi.Models;

namespace Cl.WebApi.SwaggerModel
{
    public class SwaggerApiInfo
    {
        /// <summary>
        /// URL前缀
        /// </summary>
        public string UrlPrefix { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// <see cref="Microsoft.OpenApi.Models.OpenApiInfo"/>
        /// </summary>
        public OpenApiInfo OpenApiInfo { get; set; }
    }


    /// <summary>
    /// 分组
    /// </summary>
    public static class Grouping
    {
        /// <summary>
        /// 开放接口
        /// </summary>
        public const string OpenGroup = "OpenGroup_v1";

        /// <summary>
        /// 后端接口
        /// </summary>
        public const string AdminGroup = "AdminGroup_v1";

        /// <summary>
        /// 前端接口
        /// </summary>
        public const string ClientGroup = "ClientGroup_v1";

        /// <summary>
        /// JWT授权接口组
        /// </summary>
        public const string GroupName = "GroupName_v1";
    }
}
